package com.sm.tool.entity.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User_ {

    /**
     * CREATE TABLE `user_0` (
     *   `id` bigint(21) NOT NULL AUTO_INCREMENT COMMENT '用户表id',
     *   `user_name` varchar(14) DEFAULT NULL COMMENT '用户名',
     *   `pass_word` varchar(14) DEFAULT NULL COMMENT '密码',
     *   `phone` varchar(11) NOT NULL COMMENT '用户手机号码',
     *   `user_secret` varchar(64) DEFAULT NULL COMMENT '用户密钥（系统自动生，成用于jwt）',
     *   `nick_name` varchar(8) DEFAULT NULL COMMENT '昵称',
     *   `balance` double(9,2) DEFAULT NULL COMMENT '余额',
     *   `state` smallint(1) DEFAULT NULL COMMENT '0 未激活，1已激活',
     *   `is_admin` smallint(1) DEFAULT '0' COMMENT '0表示 否，1 表示管理员',
     *   `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
     *   `create_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
     *   PRIMARY KEY (`id`) USING BTREE,
     *   UNIQUE KEY `user_name` (`user_name`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
     */
    private Long id;
    private String userName;
    private String passWord;
    private String phone;
    private String userSecret;
    private String nickName;
    private BigDecimal balance;
    private Integer state;
    private Integer isAdmin;
    private Date updateTime;
    private Date createTime;



}
